package constant.milk.aptprice.apt;

import java.util.HashMap;

import constant.milk.aptprice.database.DbAdapter;
import constant.milk.aptprice.database.DbInsertQuery;
import android.content.Context;

public class DaeGuSetting
{
	private DbInsertQuery insertQuery;
	
	public DaeGuSetting(Context context, DbAdapter db)
	{
		insertQuery = new DbInsertQuery(context, db);
	}
	
	public void Setting() throws Exception
	{
		setData("북구", "252", "193");
		setData("동구", "249", "180");
		setData("달성군", "237", "181");
		setData("달서구", "279", "220");
		setData("서구", "232", "162");
		setData("중구", "270", "207");
		setData("남구", "245", "180");
		setData("수성구", "318", "238");
	}
	
	private void setData(String name, String meib, String junse) throws Exception
	{
		HashMap<String, String> map = new HashMap<String, String>();
		
		map.put("title", "대구광역시");
		map.put("name", name);
		map.put("meib", meib);
		map.put("junse", junse);
		
		insertQuery.setAptData(map);
	}
}
